//package org.sunflower.ice.infrastructure.config;
//
//import com.aliyun.ice20201109.Client;
//import com.aliyun.teaopenapi.models.Config;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.sunflower.ice.infrastructure.strategy.TemplateSubmitMediaProducingJob;
//import org.sunflower.ice.infrastructure.strategy.MediaProducingJobStrategy;
//
///**
// * @description:
// * @author: TanJingyu
// * @create: 2021-10-11 13:57
// **/
////@Configuration(proxyBeanMethods = false)
//@Configuration
//@EnableConfigurationProperties(value = IceProperties.class)
//public class AliyunIceConfiguration {
//
//    @Bean
//    public MediaProducingJobStrategy templateSubmitMediaProducingJob() {
//        return new TemplateSubmitMediaProducingJob(aliyunIceClient());
//    }
//
////    @Bean
////    public MediaProducingJobStrategy timeLineSubmitMediaProducingJob() {
////        return null;
////    }
//
//    @Bean
//    public Client aliyunIceClient() {
//        Config config = new Config();
//        config.accessKeyId = "LTAI4FukQDVF4S6qyzR3zYdR";
//        config.accessKeySecret = "GWYJNPJgVuIK5tODiSI42GGPYq5Wvl";
//        config.endpoint = "ice.cn-hangzhou.aliyuncs.com";
//        config.regionId = "cn-hangzhou";
//
//        Client client = null;
//        try {
//            client = new Client(config);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//
//        return client;
//    }
//}
